'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    var db = this.app.mongodb;
    // const collection = await db.collection("list215")
    var res = await db.collection("list215").find().toArray()
    console.log(res);
    ctx.body = res;
  }
}

module.exports = HomeController;
